package com.rds.common.mail;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@ConfigurationProperties(prefix = "email")
@Component
public class MailConfig {
    /**邮件服务器域名(mail.xxx.com)**/
    private String host;
    /**邮件服务器协议(smtp)**/
    private String protocol;
    /**端口
    private String port;**/
    /**是否验证登录信息 默认true**/
    private String auth;
    /**是否开启ssl加密 默认true**/
    private String enable;
    /**发件人名称**/
    private String name;
    /**发件人地址**/
    private String fromAddress;
    /**发件人密码**/
    private String password;
    /**是否发动邮件 默认是(true)**/
    private String emailType;


    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        this.protocol = protocol;
    }

    /*public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }*/

    public String getAuth() {
        return auth;
    }

    public void setAuth(String auth) {
        this.auth = auth;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFromAddress() {
        return fromAddress;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setFromAddress(String fromAddress) {
        this.fromAddress = fromAddress;
    }

    public String getEmailType() {
        return emailType;
    }

    public void setEmailType(String emailType) {
        this.emailType = emailType;
    }
}
